import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity('sys_menu')
export class Menu {

    @PrimaryGeneratedColumn()
    id: number
    @Column(
        {
            nullable: true
        }
    )
    name: string
    @Column({
        nullable: true
    })
    permission: string
    @Column({
        nullable: true
    })
    path: string
    @Column({
        name: 'parent_id'
    })
    parentId: number
    @Column({
        nullable: true
    })
    icon: string
    @Column({
        nullable: true
    })
    component: string
    @Column(
        {
            nullable: true
        }
    )
    type: number
    @Column()
    sort: number
    @Column(
        {
            name: 'data_status',
            nullable: true
        }
    )
    dataStatus: number
    @Column({
        name: "is_show_menu",
        nullable: true
    })
    isShowMenu: number
    @Column()
    createTime: Date
    @Column()
    updateTime: Date


}
